dm: core: Allow access to the device's driver_id data
authorSimon Glass <[email protected]>
Tue, 11 Nov 2014 17:46:18 +0000 (10:46 -0700)
committerSimon Glass <[email protected]>
Sat, 22 Nov 2014 09:16:45 +0000 (10:16 +0100)
commit2ef249b4420818d7ea31a031f48825e5f38ed3ac
tree5f02f7a902dd73e2c7bd0fafe9fa643d0f69c361
parentc1a6f371ae65f1a3709e872e08bed51321e292fc
dm: core: Allow access to the device's driver_id data

When the device is created from a device tree node, it matches a compatible
string. Allow access to that string and the associated data.

Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Acked-by: Heiko Schocher <[email protected]>
drivers/core/device.c
drivers/core/lists.c
include/dm/device.h